package com.hanhy.Page;

import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Reporter;

/**
 * Created by Administrator on 2016/12/12.
 */
public class BidIndexPage extends BasePage {
    public BidIndexPage(){}
    public BidIndexPage(WebDriver driver) throws Exception {
        super(driver);
    }


    //竞价项目页面元素定位
    By createBidProjectLocator = By.id("nextStepBtn");

    //点击“新建竞价项目”进入新建竞价单页面
//    public CreateBidProjectPage getIntoCreatePage() {
//        try {
//            WebElement createBtn = new WebDriverWait(this.driver, 15).until(ExpectedConditions.presenceOf ElementLocated(createBidProjectLocator));
//            createBtn.click();
//        } catch (NoSuchElementException e) {
//            Reporter.log("未能成功进入竞价页面");
//            e.getMessage();
//        }
//        return new CreateBidProjectPage(this.driver);
//    }
}
